package sharedData;

/**
 * 
 * Class to share constants between frameworks
 * @author Didzis Petkus, Danny Johansen, Liviu Berheci
 * 
 */
public class SharedConstants {

	/**
	 * UltrasonicSensor out of range value
	 */
	public final static int USSR_OUT_OF_RANGE = 255;

	/**
	 * Minimal UltrasonicSensor detection range
	 */
	public final static int USSR_DETECTION_RANGE = 25;
	// public final static int USSR_MAGNET_RANGE_UPPER = 40;
	// public final static int USSR_MAGNET_RANGE_LOWER = 15;
	// public final static float USSR_AVERAGE_MEAN_DIFFERENCE_LEFT_RIGHT =
	// 1.625f;

	/**
	 * Left UltrasonicSensor angle relative to the robot position
	 */
	public final static int USSR_LEFT_ANGLE = 90;
	/**
	 * Right UltrasonicSensor angle relative to the robot position
	 */
	public final static int USSR_RIGHT_ANGLE = -90;

	/**
	 * The width of robot track
	 */
	public final static double PILOT_TRACKWIDTH = 13.5;
	
	/**
	 * Default travel speed.
	 */
	public final static int PILOT_TRAVELSPEED = 16;
	// public final static int PILOT_ROTATE_ANGLE = 90;

//	public static final byte DATA_TYPE_COMMAND = 0;
	
	/**
	 * Data type for general {@link MapData} object
	 */
	public static final byte DATA_TYPE_MAP_DATA = 1;

	
	/**
	 * Data type for {@link MapData} object. 
	 * Used when robot bumps into unseen obstacle.
	 */
	public static final byte DATA_TYPE_BUMP_DATA = 2;
	/**
	 * Data type for {@link DebugItem} object
	 */
	public static final byte DATA_TYPE_DEBUG = 3;

}
